package com.chenfubing.ps.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenfubing.ps.entity.Appointment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author chenfubing
 * @since 2020-05-05
 */
public interface IAppointmentService extends IService<Appointment> {

    /**
     * 添加预约
     *
     * @param appointment
     */
    void addAppointment(Appointment appointment);

    /**删除预约
     * @param id
     */
    void deleteAppointment(int id);

    /**获取分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page<Appointment> getAppointmentPage(int pageNum, int pageSize);

    /**查询
     * @param startTime
     * @param endTime
     * @param license
     * @return
     */
    List<Appointment> getAppointmentList(LocalDateTime startTime, LocalDateTime endTime, String license);
}
